package com.artemis.servlet;

import org.apache.shiro.crypto.hash.*;

public class Demo {
    public static void main(String[] args) {
        String str="admin";
        Md5Hash md5Hash=new Md5Hash(str);
        Md5Hash md5Hash2=new Md5Hash(str,"123");
        Md5Hash md5Hash3=new Md5Hash(str,"123",2);
        Sha1Hash  sha1=new Sha1Hash(str);
        Sha256Hash sha2=new Sha256Hash(str);
        Sha384Hash sha3=new Sha384Hash(str);
        Sha512Hash sha4=new Sha512Hash(str);
        System.out.println(md5Hash);
        System.out.println(md5Hash2);
        System.out.println(md5Hash3);
        System.out.println(sha1);
        System.out.println(sha2);
        System.out.println(sha3);
        System.out.println(sha4);
    }
}
